for (var t = [], e = 100; e <= 200; e++) t.push(e);

Component({
    properties: {
        question: {
            type: Object,
            value: {}
        },
        answer: {
            type: Object,
            value: {}
        },
        site: {
            type: Number,
            value: 0
        }
    },
    data: {
        heightList: t,
        selected: [ 0 ]
    },
    ready: function() {
        var e = parseInt(this.data.answer.answer);
        console.log(this.data.question);
        var s = this.data.question.interval;
        if (0 == s.length && (s = t), this.setData({
            heightList: s
        }), e) {
            var a = s.indexOf(e) > -1 ? s.indexOf(e) : 0;
            this.setData({
                selected: [ a ]
            });
        } else this.triggerEvent("quesCallback", {
            question: this.data.question,
            site: this.data.site,
            answer: s[this.data.selected[0]]
        });
    },
    methods: {
        change: function(t) {
            var e = t.detail.value;
            this.setData({
                selected: e
            }), this.triggerEvent("quesCallback", {
                question: this.data.question,
                site: this.data.site,
                answer: this.data.heightList[e[0]]
            });
        }
    }
});